package com.xh.bussiness.permission.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.xh.core.model.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 *
 * </p>
 *
 * @author Pitt zhang
 * @since 2020/3/3
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("ts_user_area")
public class UserArea extends SuperEntity {

    private String userId;

    private Integer areaId;

    private Integer parentId;

    private String areaName;

    private Integer grade;

    @TableField(exist = false)
    private List<UserArea> children;
}
